<?php
/**
 * User:于小涛
 * Date:2020/2/17
 * Time:15:37
 */
namespace app\admin\controller\rbac;

use app\admin\BaseController;
use app\admin\model\rbac\OpLog as OpLogModel;
use think\App;

class OpLog extends BaseController {

    private $obj_oplog_model=null;
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->obj_oplog_model = new OpLogModel();
    }

    public function getList(){
        return view();
    }

    public function getListData(){
        $arr_where=array();
        if($this->request->param('search')){
            $arr_where[]=array('detail','like',"%{$this->request->param('search')}%");
        }
        $arr_list=$this->obj_oplog_model->getList($arr_where,$this->request->param('page'),$this->request->param('limit'));
        return output_page($arr_list);
    }
}